<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <Footer v-show='$route.meta.show'></Footer>
  </div>
</template>

<script>
// 引入header组件
import Header from './components/Header'
import Footer from './components/Footer'
export default {
  name: 'App',
  components: {
    Header,
    Footer
  },
  mounted(){
    //发送请求
    this.$store.dispatch("categoryList");
  }
}
</script>

